package com.hxzy.controller.vue.employee.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author wy
 * @Description 更改密码请求
 * @Date 2023/9/4 15:58
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class EmployeePwdReq {

    @NotNull(message = "主键不能为空")
    private Long id;

    @Length(min = 4,message = "密码至少4位以上")
    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "确认密码不能为空")
    private String confirmPwd;

}
